
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0b1020;
    color: #e2e8f0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    padding: 60px 20px;
    font-size: 15px;
    line-height: 1.6;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

.subtitle {
    color: #8b9dff;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

h1 {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #8b9dff, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

hr {
    border: none;
    border-top: 1px solid #293650;
    margin-bottom: 28px;
}

.section-title {
    color: #9ba9c2;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.projects {
    display: flex;
    flex-direction: column;
}

.projects a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 12px;
    color: #e2e8f0;
    text-decoration: none;
    border-bottom: 1px solid #202c43;
    transition: background-color 0.2s, padding-left 0.2s;
}

.projects a span {
    color: #64748b;
    font-size: 13px;
    min-width: 24px;
}

.projects a:hover {
    background-color: #111a2e;
    padding-left: 20px;
}

.projects a:hover span {
    color: #8b9dff;
}

@media (max-width: 500px) {
    body {
        padding: 35px 16px;
    }

    h1 {
        font-size: 30px;
    }
}



/* CAMPI DI INPUT */
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="reset"]) {
    background-color: #111a2e;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* QUANDO CLICCHI SU UN INPUT */
input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="reset"]):focus {
    border-color: #8b9dff;
    box-shadow: 0 0 0 3px rgba(139, 157, 255, 0.15);
}

/* TESTO SEGNAPOSTO */
input::placeholder {
    color: #64748b;
}

/* PULSANTI SUBMIT */
input[type="submit"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* EFFETTO AL PASSAGGIO DEL MOUSE */
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

/* PULSANTI RESET */
input[type="reset"] {
    background: linear-gradient(135deg, darkred, darkred);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* EFFETTO AL PASSAGGIO DEL MOUSE */
input[type="reset"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

/* EFFETTO QUANDO PREMI IL PULSANTE */
input[type="submit"]:active {
    transform: translateY(0);
}

/* EFFETTO QUANDO PREMI IL PULSANTE */
input[type="reset"]:active {
    transform: translateY(0);
}


/* CHECKBOX E RADIO */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #8b9dff;
    cursor: pointer;
}



/* MENU SELECT */
select {
    appearance: none;
    -webkit-appearance: none;

    background-color: #111a2e;
    color: #e2e8f0;

    border: 1px solid #334155;
    border-radius: 8px;

    padding: 11px 42px 11px 14px;
    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    outline: none;

    /* Freccia personalizzata */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b9dff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 16px;

    transition: border-color 0.2s, box-shadow 0.2s;
}

/* QUANDO PASSI SOPRA */
select:hover {
    border-color: #6366f1;
}

/* QUANDO SELEZIONI IL MENU */
select:focus {
    border-color: #8b9dff;
    box-shadow: 0 0 0 3px rgba(139, 157, 255, 0.15);
}

/* OPZIONI DEL MENU */
select option {
    background-color: #111a2e;
    color: #e2e8f0;
}



/* PULSANTI */
button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;

    border: none;
    border-radius: 7px;

    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        filter 0.2s;
}

/* PASSAGGIO DEL MOUSE */
button:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

/* QUANDO VIENE PREMUTO */
button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* PULSANTE DISABILITATO */
button:disabled {
    background: #334155;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: none;
}


/* TEXTBOX */
input[type="text"] {
    background-color: #111a2e;
    color: #e2e8f0;

    border: 1px solid #334155;
    border-radius: 7px;

    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;

    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* QUANDO CLICCHI NELLA TEXTBOX */
input[type="text"]:focus {
    border-color: #8b9dff;
    box-shadow: 0 0 0 3px rgba(139, 157, 255, 0.15);
}

/* TESTO SEGNAPOSTO */
input[type="text"]::placeholder {
    color: #64748b;
}

/* TEXTBOX DISABILITATA */
input[type="text"]:disabled {
    background-color: #18233a;
    color: #64748b;
    cursor: not-allowed;
}


/* TEXTAREA */
textarea {
    background-color: #111a2e;
    color: #e2e8f0;

    border: 1px solid #334155;
    border-radius: 7px;

    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    width: 100%;
    max-width: 100%;
    min-height: 100px;

    resize: vertical;
    outline: none;

    transition: border-color 0.2s, box-shadow 0.2s;
}

/* QUANDO CLICCHI NELLA TEXTAREA */
textarea:focus {
    border-color: #8b9dff;
    box-shadow: 0 0 0 3px rgba(139, 157, 255, 0.15);
}

/* TESTO SEGNAPOSTO */
textarea::placeholder {
    color: #64748b;
}

/* TEXTAREA DISABILITATA */
textarea:disabled {
    background-color: #18233a;
    color: #64748b;
    cursor: not-allowed;
}




.risposta {
    max-width: 700px;
    margin: 25px auto;
    font-family: Arial, sans-serif;
}

.corretta {
    background-color: #e8f8ee;
    color: #176534;
    border: 1px solid #a7dfb8;
    border-radius: 10px;
    padding: 14px;
    margin: 10px 0;
}

.sbagliata {
    background-color: #fff0f0;
    color: #a32222;
    border: 1px solid #f0b4b4;
    border-radius: 10px;
    padding: 14px;
    margin: 10px 0;
}

.punteggio {
    background-color: #eef2ff;
    color: #283593;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}
